From deefe3cd6a4dc61a6fb3a7a3ff6cd57288366865 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 11 Jul 2014 10:27:00 -0400 Subject: [PATCH] inspector: Add comments The binding support pokes some not-quite-official (or entirely private) implementation details. Add comment to warn about this. --- gtk/inspector/prop-editor.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gtk/inspector/prop-editor.c b/gtk/inspector/prop-editor.c index ee8b80ce0e..4614a9211c 100644 --- a/gtk/inspector/prop-editor.c +++ b/gtk/inspector/prop-editor.c @@ -1330,6 +1330,9 @@ add_binding_info (GtkInspectorPropEditor *editor) object = editor->priv->object; name = editor->priv->name; + /* Note: this is accessing private GBinding details, so keep it + * in sync with the implementation in GObject + */ bindings = (GHashTable *)g_object_get_data (G_OBJECT (object), "g-binding"); if (!bindings) return; @@ -1407,6 +1410,10 @@ add_binding_info (GtkInspectorPropEditor *editor) } } +/* Note: Slightly nasty that we have to poke at the + * GSettingsSchemaKey internals here. Keep this in + * sync with the implementation in GIO! + */ struct _GSettingsSchemaKey { GSettingsSchema *schema; -- 2.30.2